package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-03  18:59
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "员工分页返回的数据格式")
public class EmployeeVO implements Serializable  {
    @Serial
    private static final long serialVersionUID = 9208815034119297073L;

    @Schema(name = "主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "员工姓名")
    private String empName;

    @Schema(name = "员工头像")
    private String avatar;

    @Schema(name = "员工性别")
    private int gender;

    @Schema(name = "员工是否认证")
    private int isIdentify;

    @Schema(name = "员工年龄")
    private int age;

    @Schema(name = "员工身份证")
    private String idNo;

    @Schema(name = "入职时间")
    private LocalDate joinTime;

    @Schema(name = "员工生日")
    private LocalDate birthday;

    @Schema(name = "员工电话")
    private String phone;
}
